package com.foreknow.springboot.service.impl;

import com.foreknow.springboot.mapper.FoodMapper;
import com.foreknow.springboot.po.Food;
import com.foreknow.springboot.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@SuppressWarnings({"all"})

/**
 * @author xiaoming
 * @version jdk1.8
 * @date 2022/8/13 21:45
 * @function:
 */
@Service
public class FoodServiceImpl implements FoodService {
    @Autowired
    private FoodMapper foodMapper;

    @Override
    public List<Food> listFoodByBusinessId(Integer businessId) {
        return foodMapper.listFoodByBusinessId(businessId);
    }
}
